﻿using System;
using System.Collections.Generic;
using System.Linq;
using SqlSugar;
namespace furion.blog.Domain.MySQL
{
    /// <summary>
    /// 
    ///</summary>
    [SugarTable("message")]
    public class Message
    {
        /// <summary>
        ///  
        ///</summary>
         [SugarColumn(ColumnName="message_id" ,IsPrimaryKey = true   )]
         public long MessageId { get; set; }
        /// <summary>
        /// 来自用户(-1:系统 其他id为用户id) 
        ///</summary>
         [SugarColumn(ColumnName="from_user"    )]
         public long? FromUser { get; set; }
        /// <summary>
        /// 接受账号ID 
        ///</summary>
         [SugarColumn(ColumnName="to_user"    )]
         public long? ToUser { get; set; }
        /// <summary>
        /// 内容 
        ///</summary>
         [SugarColumn(ColumnName="content"    )]
         public string Content { get; set; }
        /// <summary>
        /// 时间 
        ///</summary>
         [SugarColumn(ColumnName="created_time"    )]
         public DateTime? CreatedTime { get; set; }
        /// <summary>
        /// 生成数据的时间戳 
        ///</summary>
         [SugarColumn(ColumnName="ts"    )]
         public long? Ts { get; set; }
        /// <summary>
        /// 是否删除 
        ///</summary>
         [SugarColumn(ColumnName="is_delete"    )]
         public string IsDelete { get; set; }
        /// <summary>
        /// 是否已经阅读 
        ///</summary>
         [SugarColumn(ColumnName="is_open"    )]
         public string IsOpen { get; set; }
        /// <summary>
        /// 邮件打开时间
        /// </summary>
        [SugarColumn(ColumnName = "open_time")]
        public DateTime? OpenTime { get; set; } = null;
    }
}
